/* Copyright (c) 2012 KT, Inc.
 * All right reserved.
 * http://www.ucloud.com
 * This software is the confidential and proprietary information of KT
 * , Inc. You shall not disclose such Confidential Information and
 * shall use it only in accordance with the terms of the license agreement
 * you entered into with KT.
 *
 * Revision History
 * Author              Date                         Description
 * ------------------   --------------                  ------------------
 *   hun              2013. 5. 8
 */
package com.witherest.server.vo.response;

import com.witherest.server.common.bean.ResponseCode;

/**
 * The Class CommonResponse.
 */
public class CommonResponse {
	
	/** The result code. */
	private String resultCode;
	
	/** The result msg. */
	private String resultMsg;

    private String requestType;
	
	
	/**
	 * Instantiates a new common response.
	 */
	public CommonResponse() {}
	
	/**
	 * Instantiates a new common response.
	 *
	 * @param responseCode the responseCode
	 */
	public CommonResponse(ResponseCode responseCode) {
		this.resultCode = responseCode.getResultCode();
		this.resultMsg = responseCode.getResultMsg();
	}

    /**
     * Instantiates a new common response.
     *
     * @param responseCode
     * @param requestType
     */
    public CommonResponse(ResponseCode responseCode, String requestType) {
        this.resultCode = responseCode.getResultCode();
        this.resultMsg = responseCode.getResultMsg();
        this.requestType = requestType;
    }
	
	/**
	 * Gets the result code.
	 *
	 * @return the result code
	 */
	public String getResultCode() {
		return resultCode;
	}
	
	/**
	 * Sets the result code.
	 *
	 * @param resultCode the new result code
	 */
	public void setResultCode(String resultCode) {
		this.resultCode = resultCode;
	}
	
	/**
	 * Gets the result msg.
	 *
	 * @return the result msg
	 */
	public String getResultMsg() {
		return resultMsg;
	}
	
	/**
	 * Sets the result msg.
	 *
	 * @param resultMsg the new result msg
	 */
	public void setResultMsg(String resultMsg) {
		this.resultMsg = resultMsg;
	}

    public String getRequestType() {
        return requestType;
    }


    public void setRequestType(String requestType) {
        this.requestType = requestType;
    }

    public void setResponseCode(ResponseCode code) {
        this.resultCode = code.getResultCode();
        this.resultMsg = code.getResultMsg();
    }
}
